﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FJERP.Model;
using FJERP.DAL;
using System.Data.SqlClient;
using System.Data;

namespace FJERP.BLL
{
   public  class SupplierBLL
    {

        SupplierDAL dal = new SupplierDAL();
        /// <summary>
        /// 显示供应商列表
        /// </summary>
        /// <returns></returns>
        public List<Supplier> ShowSupplier()
        {
            return dal.ShowSupplier();
        }
        /// <summary>
        /// 添加供应商
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public int AddSupplier(Supplier s)
        {
            return dal.AddSupplier(s);
        }
        /// <summary>
        /// 信息数量
        /// </summary>
        /// <returns></returns>
        public int CountSupplier()
        {
            return dal.CountSupplier();
        }
        /// <summary>
        /// 根据I的获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DataTable SuppLier_Hu(int id)
        {
            return dal.SuppLier_Hu(id);

        }
        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public int UptSupplier(Supplier s)
        {
            return dal.UptSupplier(s);
        }
        /// <summary>
        /// 显示供应商列表
        /// </summary>
        /// <returns></returns>
        public List<Supplier> ShowSupplier_Sel(string Supplier_Name)
        {
            return dal.ShowSupplier_Sel(Supplier_Name);
        }
        /// <summary>
        /// 删除供应商
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Del(int id)
        {
            return dal.Del(id);
        }
    }
}
